package com.elinkway.infinitemovies.http.requesttask;

import android.content.Context;

import com.elinkway.infinitemovies.async.MoviesHttpAsyncTask;
import com.elinkway.infinitemovies.bean.CommonBean;
import com.elinkway.infinitemovies.http.api.MoviesHttpApi;
import com.elinkway.infinitemovies.http.parser.CommonParser;
import com.lvideo.http.bean.LVideoDataHull;

/**
 * Author: liuxiaojiang(liuxiaojiang@lvideo.com)
 * Date: 2016-04-26
 * Time: 14:32
 * Description: 播放数据上报
 */
public class ReportPlaySessionTask extends
        MoviesHttpAsyncTask<CommonBean> {

    private String dataString;

    @Override
    public void netNull() {
        super.netNull();
    }

    @Override
    public void netErr(int updateId, String errMsg) {
        super.netErr(updateId, errMsg);
    }

    @Override
    public void dataNull(int updateId, String errMsg) {
        super.dataNull(updateId, errMsg);
    }

    public ReportPlaySessionTask(Context context, String dataString) {
        super(context);
        this.dataString = dataString;
    }

    @Override
    public LVideoDataHull<CommonBean> doInBackground() {
        LVideoDataHull<CommonBean> ret = MoviesHttpApi.reportPlaySession(
                new CommonParser(), dataString);
        return ret;
    }

    @Override
    public void onPostExecute(int updateId, CommonBean result) {

    }
}
